<?php /* Smarty version Smarty 3.1.4, created on 2012-05-01 10:57:12
         compiled from ".\templates\user\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:100834f9fc188013739-47759390%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '525314355568a9af471e3e150a7053786ebfa6b4' => 
    array (
      0 => '.\\templates\\user\\index.tpl',
      1 => 1334484556,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '100834f9fc188013739-47759390',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'title' => 0,
    'user_arr' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty 3.1.4',
  'unifunc' => 'content_4f9fc1881d361',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f9fc1881d361')) {function content_4f9fc1881d361($_smarty_tpl) {?><script>

	$(function() {
		$( "#tabs" ).tabs();
                //$("#tabs").tabs('load',current_index);
	});


             $(function(){

             $('#usertable').dataTable({
                "bJQueryUI": true,
                "sPaginationType": "full_numbers",
                  "bStateSave": true,
                  "iCookieDuration":120,
                   "aaSorting": [[ 0, "desc" ]]

   } );
} );
</script>
<div id="page-heading">
	<h1><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
</h1><br>
        <img src="images/icons/add.png"><a onclick="loadPage('user/adduser/');" href="javascript: void(0)">Add New</a>
 

</div>
<div align="center">
	<table border="0" width="98%" cellpadding="0" cellspacing="0" id="usertable">
            <thead>
		<tr>
			<th width="5%" align="center" class="table-header-repeat">User id</th>
                        <th width="5%" align="center" class="table-header-repeat">Registered Date</th>
			<th width="4%" align="center" class="table-header-repeat line-left">Email</th>
			<th width="9%"  align="center"class="table-header-repeat line-left">First Name</th>
			<th width="9%" align="center" class="table-header-repeat line-left">Last Name</th>
			<th width="3%" align="center"  class="table-header-repeat line-left">Conatct No</th>
                        <th width="3%" align="center" class="table-header-repeat line-left">User Type</th>
			<th width="3%" align="center" class="table-header-repeat line-left">Status</th>
			<th width="2%" align="center" class="table-header-repeat line-left">&nbsp;</th>
			<th width="2%" align="center"  class="table-header-repeat line-left">&nbsp;</th>
             
		</tr>
                </thead>
                <tbody>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['name'] = 'sec1';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['user_arr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']);
?>
		<tr>
			<td><?php echo $_smarty_tpl->tpl_vars['user_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_id'];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['user_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['registerdate'];?>
</td>
			<td>&nbsp;<?php echo $_smarty_tpl->tpl_vars['user_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_email'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['user_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_firstname'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['user_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_lastname'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['user_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_phone'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['user_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['usertype'];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['user_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['status'];?>
</td>
			<td><a href="javascript: void(0);" onclick="loadPage('user/edituser/<?php echo $_smarty_tpl->tpl_vars['user_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_id'];?>
');"><img src="images/icons/edit.gif" width="15" height="15" /></a></td>
			<td><a href="javascript: void(0);" onclick="loadPage('user/adduser/<?php echo $_smarty_tpl->tpl_vars['user_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['user_id'];?>
');"><img src="images/icons/imgpreview.png" width="20" height="20" /></a></td>
                    
		</tr>
		<?php endfor; endif; ?>
                </tbody>
	</table>
	 
</div>		<?php }} ?>